cmake_minimum_required(VERSION 3.19)
project(LearnRealTimeRendering)

set(CMAKE_CXX_STANDARD 14)

add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")

SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)

link_directories(GLFW/lib)
include_directories(GLFW)

add_subdirectory(Framework)
add_subdirectory(Test)
add_subdirectory(SphereMesh)
add_subdirectory(FrameBuffer)
add_subdirectory(Cubemap)
add_subdirectory(GeoShader)
add_subdirectory(AdvancedLighting)

# 拷贝lib
file(COPY GLFW/lib/glfw3dll.lib DESTINATION ${CMAKE_BINARY_DIR}/lib)